/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.wx.entity;

import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.Length;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 机构商家分组配置Entity
 * @author wangjianxin
 * @version 2018-11-29
 */
@Table(name="wx_business_group_org_config", alias="a", columns={
		@Column(name="id", attrName="id", label="id", isPK=true),
		@Column(name="group_name", attrName="groupName", label="分组名称", queryType=QueryType.LIKE),
		@Column(name="office_code", attrName="officeCode", label="机构名称"),
		@Column(includeEntity=DataEntity.class),
	}, orderBy="a.update_date DESC"
)
public class WxBusinessGroupOrgConfig extends DataEntity<WxBusinessGroupOrgConfig> {
	
	private static final long serialVersionUID = 1L;
	/**
	 * 分组名称
	 */
	private String groupName;
	/**
	 * 机构code
	 */
	private String officeCode;


	/**
	 * 附加字段排序的前10个商家
	 */
	private String sortOne;
	private String sortTwo;
	private String sortThree;
	private String sortFour;
	private String sortFive;
	private String sortSix;
	private String sortSeven;
	private String sortEight;
	private String sortNine;
	private String sortTen;

	/**
	 * 添加字段
	 */
	private WxBusinessGroup wxBusinessGroup;

	public WxBusinessGroupOrgConfig() {
		this(null);
	}

	public WxBusinessGroupOrgConfig(String id){
		super(id);
	}
	
	@NotBlank(message="分组名称不能为空")
	@Length(min=0, max=200, message="分组名称长度不能超过 200 个字符")
	public String getGroupName() {
		return groupName;
	}

	public void setGroupName(String groupName) {
		this.groupName = groupName;
	}
	
	@NotBlank(message="机构名称不能为空")
	@Length(min=0, max=200, message="机构名称长度不能超过 200 个字符")
	public String getOfficeCode() {
		return officeCode;
	}

	public void setOfficeCode(String officeCode) {
		this.officeCode = officeCode;
	}

	public WxBusinessGroup getWxBusinessGroup() {
		return wxBusinessGroup;
	}

	public void setWxBusinessGroup(WxBusinessGroup wxBusinessGroup) {
		this.wxBusinessGroup = wxBusinessGroup;
	}

	public String getSortOne() {
		return sortOne;
	}

	public void setSortOne(String sortOne) {
		this.sortOne = sortOne;
	}

	public String getSortTwo() {
		return sortTwo;
	}

	public void setSortTwo(String sortTwo) {
		this.sortTwo = sortTwo;
	}

	public String getSortThree() {
		return sortThree;
	}

	public void setSortThree(String sortThree) {
		this.sortThree = sortThree;
	}

	public String getSortFour() {
		return sortFour;
	}

	public void setSortFour(String sortFour) {
		this.sortFour = sortFour;
	}

	public String getSortFive() {
		return sortFive;
	}

	public void setSortFive(String sortFive) {
		this.sortFive = sortFive;
	}

	public String getSortSix() {
		return sortSix;
	}

	public void setSortSix(String sortSix) {
		this.sortSix = sortSix;
	}

	public String getSortSeven() {
		return sortSeven;
	}

	public void setSortSeven(String sortSeven) {
		this.sortSeven = sortSeven;
	}

	public String getSortEight() {
		return sortEight;
	}

	public void setSortEight(String sortEight) {
		this.sortEight = sortEight;
	}

	public String getSortNine() {
		return sortNine;
	}

	public void setSortNine(String sortNine) {
		this.sortNine = sortNine;
	}

	public String getSortTen() {
		return sortTen;
	}

	public void setSortTen(String sortTen) {
		this.sortTen = sortTen;
	}
}